/*
 * Copyright (c) 2017. danlu.com Co.Ltd. All rights reserved.
 */

package cn.com.dhc.danlu.widget.base;

import android.content.Context;
import android.view.ViewGroup;

import cn.com.dhc.danlu.R;
import cn.com.dhc.danlu.util.CommonUtils;


/**
 * author: wuhaiyang(<a href="mailto:wuhaiyang@danlu.com">wuhaiyang@danlu.com</a>)<br/>
 * version: 1.0.0<br/>
 * since: 2017-03-13 上午11:31<br/>
 * <p>
 * 内容描述区域
 * </p>
 */
public class BaseFullScreenPopupView extends BasePopupWindow {

    public BaseFullScreenPopupView(final Context context) {
        super(context);
        setAttr(context);
//        setOnDismissListener(new OnDismissListener() {
//            @Override
//            public void onDismiss() {
//                CommonUtils.showStatusBar(CommonUtils.getActByContext(context));
//            }
//        });
    }

    private void setAttr(Context conext) {
        setWidth(ViewGroup.LayoutParams.MATCH_PARENT);
        setHeight(CommonUtils.getScreenHeight(conext)- CommonUtils.getStatusBarHeight (conext));
        setFocusable(true);
        setAnimationStyle(R.style.popwin_anim_style);
        setClippingEnabled(false);
    }
}
